/*
 *  Copyright 2012 Alexey Andreev.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package ru.justplay.battleship.actors;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Alexey Andreev
 */
public class GameState implements Serializable {
    private static final long serialVersionUID = -8913208078015747942L;
    private InitialState initialState;
    private boolean enemyReady;
    private boolean[][] ownSea;
    private CellState[][] enemySea;
    private List<Ship> enemyShips;

    public InitialState getInitialState() {
        return initialState;
    }

    public void setInitialState(InitialState initialState) {
        this.initialState = initialState;
    }

    public boolean isOpponentReady() {
        return enemyReady;
    }

    public void setOpponentReady(boolean opponentReady) {
        this.enemyReady = opponentReady;
    }

    public boolean[][] getOwnSea() {
        return ownSea;
    }

    public void setOwnSea(boolean[][] ownSea) {
        this.ownSea = ownSea;
    }

    public CellState[][] getEnemySea() {
        return enemySea;
    }

    public void setEnemySea(CellState[][] enemySea) {
        this.enemySea = enemySea;
    }

    public boolean isEnemyReady() {
        return enemyReady;
    }

    public void setEnemyReady(boolean enemyReady) {
        this.enemyReady = enemyReady;
    }

    public List<Ship> getEnemyShips() {
        return enemyShips;
    }

    public void setEnemyShips(List<Ship> enemyShips) {
        this.enemyShips = enemyShips;
    }
}
